package com.wm.mediator;

/**
 * @ClassName: Mediator
 * @Description: 抽象中介者
 * @Author: WM
 * @Date: 2023/5/11 9:37
 */
public abstract class Mediator {
    protected Colleague colleagueTenant;
    protected Colleague colleagueLandlord;

    public Mediator(Colleague colleagueTenant, Colleague colleagueLandlord) {
        this.colleagueTenant = colleagueTenant;
        this.colleagueLandlord = colleagueLandlord;
    }

    public abstract boolean notifyColleagueTenant(String message);

    public abstract boolean notifyColleagueLandlord(String message);
}
